/* 该文件用于创建redux中最为核心的对象————store */

//引入createStore，用于创建store
import {createStore,applyMiddleware,combineReducers} from 'redux'
import {composeWithDevTools} from 'redux-devtools-extension'
//引入“后厨”——reducer，用于初始化、加工状态
import countReducer from './reducers/count'
import personReducer from './reducers/person'
//引入redux-thunk，用于：？？？
import thunk from 'redux-thunk'

const allReducer = combineReducers({
	he:countReducer,
	rens:personReducer
})

//创建并暴露一个store
export default createStore(allReducer,composeWithDevTools(applyMiddleware(thunk)))
